package com.atomos.strategy.action.display
{
	import com.atomos.particle.DisplayObjectParticle;
	import com.atomos.particle.Particle;
	import com.atomos.strategy.action.AbstractAction;

	public class DisplayObjectMoveAction extends AbstractAction
	{
		override public function process( particle : Particle ) : void
		{
			var p : DisplayObjectParticle = particle as DisplayObjectParticle;
			
			p.displayObject.x = p.position.x;
			p.displayObject.y = p.position.y;
			
			p.displayObject.scaleX = p.scale.x;
			p.displayObject.scaleY = p.scale.y;
			
			p.displayObject.rotation = p.rotation;
			p.displayObject.alpha = p.alpha;
		}
	}
}